import { IPSSysSearchField } from './ipssys-search-field';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSysSearchFieldImpl extends PSModelObjectImpl implements IPSSysSearchField {
  get analyzer(): string {
    return this.M.analyzer;
  }

  get codeName(): string {
    return this.M.codeName;
  }

  get dateFormat(): string {
    return this.M.dateFormat;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get fieldTag(): string {
    return this.M.fieldTag;
  }

  get fieldTag2(): string {
    return this.M.fieldTag2;
  }

  get fieldType(): string {
    return this.M.fieldType;
  }

  get logicName(): string {
    return this.M.logicName;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get pattern(): string {
    return this.M.pattern;
  }

  get searchAnalyzer(): string {
    return this.M.searchAnalyzer;
  }

  get stdDataType(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 {
    return this.M.stdDataType;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get fieldData(): boolean {
    return this.M.fieldData;
  }

  get includeInParent(): boolean {
    return this.M.includeInParent;
  }

  get index(): boolean {
    return this.M.index;
  }

  get pKey(): boolean {
    return this.M.pKey;
  }

  get store(): boolean {
    return this.M.store;
  }

  get cls(): string {
    return 'PSSysSearchFieldImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'search.IPSSearchField' || cls == 'search.IPSSysSearchField') return true;
    return super.instanceof(cls);
  }
}
